package com.jiakai.cashinterfacemucon.controller;


import com.jiakai.cashinterfacemucon.model.LogWithBLOBs;
import com.jiakai.cashinterfacemucon.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@RequestMapping("/cashinterface")
public class LogController {

    @Autowired
    LogService logService;

//    @RequestMapping("/test")
//    public String test(){
//
//        LogWithBLOBs log = new LogWithBLOBs();
//        log.setId(1234l);
//        log.setApiName("abcdefg");
//        log.setCreateTime(new Date());
//        log.setInData("in");
//        log.setOutData("out");
//
//        int insert = this.logService.insert(log);
//        if(insert == 0){
//            return "fail";
//        }
//
//        return "success";
//    }

}
